<template>
  <div class="SuccessfulCases">
    <!-- <input type="text" class="inputLayout" placeholder="公司主营：微信小程序" cols="1000"> :placeholder="公司主营：微信小程序"  -->
    <x-textarea
      :max="1000"
      name="detail"
      :show-counter="false"
      class="textarea"
      :height="200"
      :placeholder="'公司主营：微信小程序'"
    ></x-textarea>
    <ul class="list">
      <li class="listItem">
        <div class="inputView">
            <input type="file" @change="getFile($event)" class="inputlayout">

        </div>
        <p class="addTitle">添加图片</p>
        
      </li>
    </ul>
     <div class="bottomView">
          <span class="exchangeButton">保存</span>
      </div>
  </div>
</template>
<script >
import { XTextarea } from "vux";

export default {
  name: "SuccessfulCases",
  data() {
    return {
      imgsrc: null
    };
  },
  methods: {
    getFile(e) {
      console.log(e.target.files);
      this.imgsrc = window.webkitURL.createObjectURL(e.target.files[0]);
    }
  },
  components: {
    XTextarea
  }
};
</script>

<style scoped>
.textarea {
  outline-style: none;
  background: none;
  outline: none;
  /* border:1px solid rgb(211, 211, 211); */
  border-radius: 4px;
  height: 200px;
  /* width: 90%; */
  margin: 15px;
  background-color: white;
}

.listItem {
  width: 25%;
  height: 100px;
  background-color: yellow;
  text-align: center;
  
}

.itemImg {
  width: 60px;
  height: 60px;
  margin-top: 10px;

}
.addTitle {
    font-size: 14px;
    color: rgb(101, 102, 102);

}
.list {
    margin-left: 15px;
}
.inputView {
    position: relative;
    width: 80px;
    height: 80px;
    overflow: hidden;
}
.inputlayout {
    position: absolute;
opacity: 0;
    /* background-color: transparent; */
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    /* width: 100%;
    height: 100%; */
    /* margin: 0px; */

    /* margin: 1px; */
}

.bottomView {
  background-color: white;
  margin-top: 1px;
  width: 100%;
  height: 100%;
  /* margin: 0x auto; */
  text-align: center;

}
.bottomView {
  background-color: white;
  margin-top: 1px;
  width: 100%;
  height: 100px;
  /* margin: 0x auto; */
  /* text-align: center; */
  position: fixed;
  bottom: 0px;
  /* flex: 0;
  margin: 0 auto; */

}
.exchangeButton {
    background-color: rgb(238, 194, 109);
    width: 90%;
    height: 40px;
    font-size: 20px;
    display: inline-block;
    border-radius: 5px;
    margin-top: 30px;
    color: white;
      line-height: 40px

}

</style>